﻿doctrine_of_lapse = {
	is_shown = {
		is_subject_type = subject_type_chartered_company
		country_is_in_india = yes
		NOT = { has_variable = doctrine_of_lapse_ended }
	}

	possible = {
		is_at_war = no
		custom_tooltip = {
			text = doctrine_of_lapse_cooldown_tt
			NOT = { has_variable = doctrine_of_lapse_cooldown }
		}
		OR = {
			AND = {
				overlord = c:BIC
				c:BIC = {
					any_subject_or_below = {
						is_player = no
						OR = {
							has_government_type = gov_princely_state_hindu
							hidden_trigger = { has_government_type = gov_princely_state_muslim }
						}
					}
				}
			}
			
			any_subject_or_below = {
				is_player = no
				OR = {
					has_government_type = gov_princely_state_hindu
					hidden_trigger = { has_government_type = gov_princely_state_muslim }
				}
			}
		}


	}

	when_taken = {
		trigger_event = { id = raj.2 days = 0 popup = yes }
		set_variable = {
			name = doctrine_of_lapse_cooldown
			years = 5
		}
	}

	ai_chance = {
		base = 5
	}
}